<?php
return [
    'components' => [
        'redis' => [
            'class' => 'yii\redis\Connection',
            'hostname' => '127.0.0.1',
            'port' => 6379,
            'database' => 1,
        ],

        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=pc-uf612q57dg7397n99.rwlb.rds.aliyuncs.com;dbname=yipai_test',
            'username' => 'yipai_test',
            'password' => 'jkdsKFLDS0324',
            'charset' => 'utf8',
            'tablePrefix' => 'jq_',
            'enableSchemaCache' => false,
            'schemaCacheDuration' => 1,
            'schemaCache' => 'cache',
        ],

        'dbIM' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=pc-uf612q57dg7397n99.rwlb.rds.aliyuncs.com;dbname=yipai_test_im',
            'username' => 'yipai_test',
            'password' => 'jkdsKFLDS0324',
            'charset' => 'utf8',
            'tablePrefix' => 'app_',
            'enableSchemaCache' => false,
            'schemaCacheDuration' => 1,
            'schemaCache' => 'cache',
        ],
    ],
];
